<?php
include_once 'dbcofig.php';
if (isset ( $_GET ['id'] )) {
	$data = array (
			$_GET ['id'] 
	);
	$statement = "delete from teacheruser where id=?";
	$statementdb = $pdo->prepare ( $statement );
	$res = $statementdb->execute ( $data );
	if ($res) {
		echo "删除成功<a href='teacheruser.php' class='btn btn-primary'>返回</a>";
		exit ();
	} else {
		echo "删除失败<a href='teacheruser.php' class='btn btn-primary'>返回</a>";
		exit ();
	}
} else {
	echo "没有数据<a href='login.php' class='btn btn-primary'>首页</a>";
	exit ();
}
?>